<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

/*
 * author	:	Nguyen Viet Manh
 * email	:	manhnv85@gmail.com
 * date		:	21.03.2012
 */

require_once 'client'.EXT;

class Calendar extends Client {

	function __construct()
	{
		parent::__construct();		
		$this->load->helper(array('custom_string'));
        $this->load->library('pagination');
		$this->data['current'] = 'home';
		
	}

	function index($y = NULL,$m = NULL, $d = NULL)
	{
		if(!$d)
		{
			$this->data['tpl_file']		=	'calendar/index';
		}
		else 
		{
			$this->data['tpl_file']		=	'calendar/view';
		}
		$this->load->view('layout/default',$this->data);
	}
	
}
